 function debounce (callback,delay=400){
    let timer=null;
    return function (...args){
        clearTimeout(timer)
        timer=setTimeout(()=>{
            callback.call(this,...args)
        },delay)
    }
}

export default debounce